package com.mate.cloud.lottery.events;

import org.springframework.context.ApplicationEvent;

import java.util.concurrent.CountDownLatch;

/**
 * 初始化活动的奖品到redis事件
 *
 * @author: MI
 * @email: 448341911@qq.com
 * @createTime: 2025/1/24 12:37
 * @updateUser: MI
 * @updateTime: 2025/1/24 12:37
 * @updateRemark: 修改内容
 * @version: v1.0
 */
public class InitPrizeToRedisEvent extends ApplicationEvent {

    private Integer lotteryId;
    private CountDownLatch countDownLatch;
    public InitPrizeToRedisEvent(Object source, Integer lotteryId, CountDownLatch countDownLatch) {
        super(source);
        this.lotteryId=lotteryId;
        this.countDownLatch=countDownLatch;
    }

    public Integer getLotteryId() {
        return lotteryId;
    }

    public void setLotteryId(Integer lotteryId) {
        this.lotteryId = lotteryId;
    }

    public CountDownLatch getCountDownLatch() {
        return countDownLatch;
    }

    public void setCountDownLatch(CountDownLatch countDownLatch) {
        this.countDownLatch = countDownLatch;
    }
}
